<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:define name="title">
	<h:outputText value="#{lang.NEW_COLLABORATOR}" />
</ui:define>

<body>
	<ui:composition template="layout.xhtml">
		<ui:define name="menuHeader">
			<h:outputText value="#{lang.ADMINISTRATION}" />
		</ui:define>
		<ui:define name="menuBody">
			<ui:include src="adminMenu.xhtml"></ui:include>
		</ui:define>
		<ui:define name="contentHeader">
			<h:outputText value="#{lang.UPDATE_PROJECT}" />
		</ui:define>
		<ui:define name="contentBody">
			<f:metadata>
				<f:viewParam name="id" value="#{collaboratorsBean.das}" required="true" 
					/>
			</f:metadata>
			<h:form>
				<fieldset class="collab-fieldset">
					<table cellpadding="0" cellspacing="12" border="0" width="500">
						<tr>
							<td class="auth-label" width="200"><h:outputText
									value="#{lang.DAS}" /></td>
							<td align="left">#{collaboratorsBean.selectedCollaborator.das} </td>
						</tr>
						<tr>
							<td class="auth-label" width="200"><h:outputText
									value="#{lang.LASTNAME}" /></td>
							<td align="left"><p:inputText id="lastName"
									styleClass="fields"
									value="#{collaboratorsBean.selectedCollaborator.lastName}"
									required="true">
								</p:inputText> <h:message for="lastName" /></td>
						</tr>
						<tr>
							<td class="auth-label" width="200"><h:outputText
									value="#{lang.FIRSTNAME}" /></td>
							<td align="left"><p:inputText id="firstName"
									styleClass="fields"
									value="#{collaboratorsBean.selectedCollaborator.firstName}"
									required="true">
								</p:inputText> <h:message for="firstName" /></td>
						</tr>
						<tr>
							<td class="auth-label" width="200"><h:outputText
									value="#{lang.PASSWORD}" /></td>
							<td align="left"><p:password id="password"
									value="#{collaboratorsBean.selectedCollaborator.password}"
									feedback="true" promptLabel="#{lang.PASSWORD_PROMPT_LABEL}"
									weakLabel="#{lang.PASSWORD_WEAK_LABEL}"
									goodLabel="#{lang.PASSWORD_GOOD_LABEL}"
									strongLabel="#{lang.PASSWORD_STRONG_LABEL}" /> <h:message
									for="password" /></td>
						</tr>
						<tr>
							<td class="auth-label" width="200"><h:outputText
									value="#{lang.EMAIL}" /></td>
							<td align="left"><p:inputText id="email" styleClass="fields"
									value="#{collaboratorsBean.selectedCollaborator.email}" required="true">
								</p:inputText> <h:message for="email" /></td>
						</tr>
						<tr>
							<td class="auth-label" width="200"><h:outputText
									value="#{lang.BIRTHDAY}" /></td>
							<td align="left"><p:calendar mode="popup" showOn="button"
									id="birthday" styleClass="fields" required="true"
									value="#{collaboratorsBean.selectedCollaborator.birthday}"></p:calendar>
								<h:message for="birthday" /></td>
						</tr>
						<tr>
							<td class="auth-label" width="200"><h:outputText
									value="#{lang.NATIONALITY}" /></td>
							<td align="left"><p:inputText id="nationality"
									styleClass="fields"
									value="#{collaboratorsBean.selectedCollaborator.nationality}"
									required="true">
								</p:inputText> <h:message for="nationality" /></td>
						</tr>
						
						<tr>
							<td colspan="2"><h:commandButton value="#{lang.SAVE}"
									action="#{collaboratorsBean.updateCollaborator}"
									
									></h:commandButton> <h:commandButton
									value="#{lang.CANCEL}"></h:commandButton></td>
						</tr>
					</table>
				</fieldset>
			</h:form>
			<br />
			<br />
			<br />
			<br />
		</ui:define>

	</ui:composition>
</body>
</html>